Q3Quaternion_SetRotateAboutAxis
You can use theQ3Quaternion_SetRotateAboutAxis
function to configure a rotate-about-axis quaternion.
TQ3Quaternion *Q3Quaternion_SetRotateAboutAxis ( TQ3Quaternion *quaternion, const TQ3Vector3D *axis, float angle);
quaternion
- A quaternion.
axis
- The desired axis of rotation.
angle
- The desired angle of rotation, in radians.
DESCRIPTION
TheQ3Quaternion_SetRotateAboutAxis
function returns, as its function result and in thequaternion
parameter, a rotate-about-axis quaternion that rotates an object by the angleangle
around the axis specified by theaxis
parameter.